package com.lesson10.composite.ex;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/10/2 12:52
 */
public abstract class Component
{
    protected String name;

    public Component(String name)
    {
        this.name = name;
    }

    public abstract void add(Component c);
    public abstract void remove(Component c);
    public abstract void display(int depth);
}
